#include "Headers.h"
#include "SelectScene.h"

CSelectScene::CSelectScene(void)
{
	m_nScene = 102;
}


CSelectScene::~CSelectScene(void)
{
	this->Uninitialize();
}

bool CSelectScene::Initialize()
{
	IS_FALSE(m_UIManager.AddUIImage(IDB_BACKGROUND, 0, 0));
	IS_FALSE(m_ButtonManager.AddButton(IDB_GAMESTART_U, IDB_GAMESTART_S, 383, 511, true, StartButton));
	IS_FALSE(m_ButtonManager.AddButton(IDB_LOAD_U, IDB_LOAD_S, 383, 561, false, LoadButton));
	IS_FALSE(m_ButtonManager.AddButton(IDB_EXITGAME_U, IDB_EXITGAME_S, 383, 611, false, ExitButton));

	return true;
}

void CSelectScene::Uninitialize()
{
	m_UIManager.RemoveUIImage();
	m_ButtonManager.RemoveButton();
}

void CSelectScene::Process()
{
	m_ButtonManager.Update();
}

void CSelectScene::Render(HDC hdc)
{
	m_UIManager.Render(hdc);
	m_ButtonManager.Render(hdc);
}

